package com.qzsoft.zhjd.cement.modules.cementproduceweight.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.zhjd.cement.modules.cementproduceweight.dto.CementProduceWeightDto;
import com.qzsoft.zhjd.cement.modules.cementproduceweight.mapper.CementProduceWeightMapper;
import com.qzsoft.zhjd.cement.modules.cementproduceweight.service.CementProduceWeightService;
import com.qzsoft.zhjd.common.annotation.ZhjdDataFilter;
import com.qzsoft.zhjd.common.components.BaseServiceComponent;

/**
 * @ClassName CementProduceWeightServiceImpl
 * @Description 总量校核业务接口实现
 * @author linhuawei
 * @since 2022-04-29
 */
@Service
public class CementProduceWeightServiceImpl implements CementProduceWeightService {

    @Autowired
    private CementProduceWeightMapper cementProduceWeightMapper;

    @Autowired
    private BaseServiceComponent baseServiceComponent;

    @Override
    @ZhjdDataFilter(tableAlias = "t1")
    public IPage<CementProduceWeightDto> page(Map<String, Object> params) {
        IPage<CementProduceWeightDto> page = baseServiceComponent.getPage(params, CementProduceWeightDto.class);
        return cementProduceWeightMapper.page(page, params);
    }

}
